


def set_attrs(obj,data: dict):
    if data:
        for key , value in data.items():
            setattr(obj, key, value)